Updated Module.php to check actions.

Added module layouts per action if needed.