Change to use translate instead of top and left