Added jQuery function to buttons