Factory for building action and view