major bug fixed and new dashboard erb file