fixed an issue where if the controller is loaded before the view it it would not be properly attached; fixed an issue where a view with empty controller would be enqueued for attach