added paid / pending status checks into views and actions.