fixing layout from fixed to absolute