added initialize function to dashboard