reset functionalty added and side bar code re-structured