adapting relative layout