Fixed a bug in action handling that causes page actions aoutside of a record te be noticed. Refactored the action handling.

Bumped version to 1.0.1