MInor code cleanup and added class "cell" to click and dblclick action.