Fixed issues with referencing views and forms when they aren't related to an action. Also cuts down on an extra SQL call that wasn't needed.