Custom implementation of action mode because original one does not work well in JellyBean