Moved action handlers to shared

moved action handler to shared for avoiding objectifying exception and
nullpointer exception