successfully implemented code to change icon based on status in database