Made changes to view to update when input changes. Now updates without click