As many in the comments stated, i need to use JavaScript and run my code client side to avoid rebuilding my website after every button click. Thanks for the comments. (I know this was a stupid rookie question, but its my first time building a website)