changed before_filter for only actions with an id present