Update menu functionality for SDK 3.0.x

I've modified the code so that the "Add task" functionality works for SDK ver.3.0.x
The functionality is slightly different to the original such that it doesn't check which tab is active, and therefore it is possible to add task when in "Done" tab.