updated code and added to dashboard