Implemented finish task feature on the frontend