Sorta working, but I'm not sure why the app refreshes after I press enter