refactor side bar of assignResource.php