update ui and add shake funciton