changed pressing button into actual html button element