refactored the add event feature and button in the dashboard show